package demo2;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class C {
    @Value("#{b1.id}")
    int c;

    @Override
    public String toString() {
        return "C{" +
                "c=" + c +
                '}';
    }
}
